package com.ido.news.splashlibrary.view;

import android.content.Context;
import android.view.ViewGroup;


import com.ido.news.splashlibrary.callback.SplashCallBack;

public class SplashViewBuilder {
    private String TxNativePosID;
    private String TtAppId;
    private String TtNativePosID;
    private String BdAppId;
    private String BdNativePosID;
    private Long KSNativePosID;
    private boolean isFullShow;
    private boolean showIcon;
    private boolean isClickEye=false;
    private int clickEyePosition=1;
    private int defaultBgResId;
    private Context mContext;
    private SplashCallBack callBack;
    private ViewGroup viewGroup;

    public SplashViewBuilder(Context context) {
        this.mContext = context;
    }

    public String getTxNativePosID() {
        return TxNativePosID;
    }



    public SplashViewBuilder setTxNativePosID(String txNativePosID) {
        this.TxNativePosID = txNativePosID;
        return this;
    }

    public boolean getIsClickEye() {
        return isClickEye;
    }

    public SplashViewBuilder setShowClickEye(boolean clickEye) {
        this.isClickEye = clickEye;
        return this;
    }

    public int getClickEyePosition() {
        return clickEyePosition;
    }

    public SplashViewBuilder setClickEyePosition(int position) {
        this.clickEyePosition = position;
        return this;
    }


    public String getBdAppId() {
        return BdAppId;
    }

    public SplashViewBuilder setBdAppId(String bdAppId) {
        this.BdAppId = bdAppId;
        return this;
    }

    public String getBdNativePosID() {
        return BdNativePosID;
    }

    public SplashViewBuilder setBdNativePosID(String bdNativePosID) {
        this.BdNativePosID = bdNativePosID;
        return this;
    }

    public Long getKSNativePosID() {
        return KSNativePosID;
    }

    public SplashViewBuilder setKSNativePosID(Long ksNativePosID) {
        this.KSNativePosID = ksNativePosID;
        return this;
    }

    public String getTtAppId() {
        return TtAppId;
    }

    public SplashViewBuilder setTtAppId(String ttAppId) {
        this.TtAppId = ttAppId;
        return this;
    }

    public String getTtNativePosID() {
        return TtNativePosID;
    }

    public SplashViewBuilder setTtNativePosID(String ttNativePosID) {
        this.TtNativePosID = ttNativePosID;
        return this;
    }

    public boolean isFullShow() {
        return isFullShow;
    }

    public SplashViewBuilder setIsFullShow(boolean isFullShow) {
        this.isFullShow = isFullShow;
        return this;
    }

    public SplashViewBuilder setDefaultBgRes(int id) {
        this.defaultBgResId = id;
        return this;
    }

    public int getDefaultBgResId() { return defaultBgResId; }

    public boolean isShowIcon() {
        return showIcon;
    }

    public SplashViewBuilder setIsShowIcon(boolean show) {
        this.showIcon = show;
        return this;
    }

    public Context getContext() {
        return mContext;
    }

    public SplashCallBack getCallBack() {
        return callBack;
    }

    public SplashViewBuilder setCallBack(SplashCallBack callBack) {
        this.callBack = callBack;
        return this;
    }

    public ViewGroup getViewGroup() {
        return viewGroup;
    }

    public SplashViewBuilder setViewGroup(ViewGroup viewGroup) {
        this.viewGroup = viewGroup;
        return this;
    }

    public SplashView creat() {
        return new SplashView(this);
    }

    public void clean() {
        this.viewGroup = null;
        this.callBack= null;
    }
}
